//
//  MacroDefinition.h
//  YOGProj
//
//  Created by liyun on 14-6-25.
//  Copyright (c) 2014年 liyun. All rights reserved.
//

#define INDICATOR_VIEW_FRAME [[UIScreen mainScreen] bounds]

#define VERSION              [[[UIDevice currentDevice] systemVersion] floatValue]
#define MODEL                [[UIScreen mainScreen] bounds].size.height != 480.0f

#define TABLE_LINE           [UIColor colorWithRed:200/255.0 green:199/255.0 blue:204/255.0 alpha:1.0f]//表格线
#define SELECT_LINE_TITLE    [UIColor colorWithRed:26/255.0 green:138/255.0 blue:215/255.0 alpha:1.0f]
#define BACK_IMAGE_COLOR     [UIColor colorWithRed:208/255.0 green:19/255.0 blue:116/255.0 alpha:1.0f]//文字淡蓝
#define PRICE_COLOR          [UIColor colorWithRed:233/255.0 green:146/255.0 blue:17/255.0 alpha:1.0f]
#define CONTENT_COLOR        [UIColor colorWithRed:190/255.0 green:190/255.0 blue:190/255.0 alpha:1.0f]
#define BACK_COLOR           [UIColor colorWithRed:0/255.0 green:153/255.0 blue:68/255.0 alpha:1.0f]
#define BACK_TITLE_COLOR     [UIColor colorWithRed:162/255.0 green:195/255.0 blue:31/255.0 alpha:1.0f]

#define HEIGHT_FONT(A)       [UIFont fontWithName:@"Helvetica-Bold" size:A]
#define NORMAL_FONT(A)       [UIFont fontWithName:@"Arial" size:A]

#define BUNDLE               [NSBundle bundleWithURL:[[NSBundle mainBundle] URLForResource:@"HCResource" withExtension:@"bundle"]]



#pragma mark ibeacon配置
#define ANIMATION_TIME       0.7
#define TIME_DEAL            10     //时间差
#define DISTANCE             10      //发送通知距离
#define HISTORYCOUNT         50


#pragma mark CCTV配置url
#define HCCCTVURL            @"http://218.94.129.170:80/viewgood_hls/1.m3u8?FileType=m3u8,ChannelID=1,StartTime=0,1.m3u8"  //CCTV url

#pragma mark 下载链接url
#define HCzhUrl              @"http://221.226.86.122:8080/uploader/yog/SpectatorGuide_CN.pdf"
#define HCenUrl              @"http://221.226.86.122:8080/uploader/yog/SpectatorGuide.pdf"
#define HCzh2Url             @"http://221.226.86.122:8080/uploader/yog/TransportGuide_CN.docx"
#define HCen2Url             @"http://221.226.86.122:8080/uploader/yog/TransportGuide.docx"
#define HCzh3Url             @"http://221.226.86.122:8080/uploader/yog/PublicTransportMap.pdf"
#define HCen3Url             @"http://221.226.86.122:8080/uploader/yog/NanJing2014TransportMap.pdf"